package com.itluma.isWOak.mapper;

import com.itluma.isWOak.pojo.AdminRole;
import org.apache.ibatis.annotations.Param;
import com.itluma.isWOak.pojo.FunctionInfo;
import com.itluma.isWOak.pojo.RoleInfo;

import java.util.List;

public interface AdminRoleMapper {
    /**
     * 插入关联数据
     *
     * @param adminId
     * @param roleId
     * @return
     */
    Integer insert(@Param("adminId") Integer adminId, @Param("roleId") Integer roleId);

    /**
     * 根据adminId删除关联数据
     *
     * @param id
     * @return
     */
    Integer deleteByAdminId(Integer id);

    List<RoleInfo> findRoleByAid(Integer adminId);

    List<FunctionInfo> findFunctionByAid(Integer adminId);


}
